<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>覆盖延伸-新建项目</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script>
		var bizNumber = "${bizNumber}";
	</script>
</head>
	<link rel="stylesheet" type="text/css" href="${ ctx }/js/ext-3.0.3/resources/css/ext-all.css">
	<link rel="stylesheet" type="text/css" href="${ctx}/js/ext-3.0.3/extension/css/combos.css" />
	<link rel="stylesheet" type="text/css" href="${ctx}/js/ext-3.0.3/extension/css/RowEditor.css" />
	<link rel="stylesheet" type="text/css" href="${ctx}/css/ext-patch.css" />
	<script type="text/javascript" src="${ctx}/js/ext-3.0.3/adapter/ext/ext-base.js" charset="UTF-8"></script>
	<script type="text/javascript" src="${ctx}/js/ext-3.0.3/ext-all-debug.js" charset="UTF-8"></script>
	<script type="text/javascript" src="${ctx}/js/ext-3.0.3/source/locale/ext-lang-zh_CN.js" charset="UTF-8"></script>
	<script type="text/javascript" src="${ctx }/js/ext-3.0.3/ux/LovCombo.js"></script>
	<script type="text/javascript" src="${ctx }/scripts/hxcy/hxcy-util.js" charset="UTF-8"></script>
	<script type="text/javascript" src="${ctx}/scripts/hxcy/room/CreateProject.js" charset="UTF-8"></script>
	<script type="text/javascript" src="${ctx}/scripts/hxcy/room/ComplaintWindow.js" charset="UTF-8"></script>
	<script type="text/javascript" src="${ctx}/js/extutil/PopupManager.js"></script>
	<script type="text/javascript" src="${ctx}/js/extutil/StoreManager.js"></script>
	<script type="text/javascript" src="${ctx}/js/extutil/PopupField.js"></script>
<style>
#basic td {
    padding-left: 15px;
}
.formTable input[type='text'] {
    background: #FFFFFF url(../../js/ext-3.0.3/resources/images/default/form/text-bg.gif) repeat-x scroll 0 0;
    border: 1px solid #B5B8C8;
    height: 18px;
    width: 170px;
    padding: 2px 3px 0;
    font-family: arial,helvetica,sans-serif;
}
.odd-row {
    height: 21px;
    vertical-align: bottom;
}
.bottom-row {
    height: 50px;
    vertical-align: middle;
}
#date-span {
    color: green;
    font-family: Consolas;
    font-size: 15px;
    font-weight: bold;
}
#time-span {
    color: red;
    font-family: Consolas;
    font-size: 17px;
    font-weight: bold;
    margin-left: 15px;
}
#freights {
    border-collapse: collapse;
}

#freights tr {
    height: 28px;
}

#freights td {
    text-align: left;
    padding-left: 10px;
    padding-right: 10px;
}
.popupBtn {
    cursor: pointer;  
}
.nodisplay {
    display: none;
}
.formlabel {
    padding-left: 5px;
}
.formfield {
    padding-right: 5px;
}
.silk-add { 
    background-image: url('${ctx}/images/add.gif') !important; 
    background-repeat: no-repeat; 
}
.silk-update { 
    background-image: url('${ctx}/images/edit.gif') !important;
    background-repeat: no-repeat; 
}
.silk-delete { 
    background-image: url('${ctx}/images/delete.gif') !important; 
    background-repeat: no-repeat; 
}
.ext-el-mask {
    /* natural zone popup z-index=100 which is shielded by disabled div mask(soiPanel) */
    z-index:1;
}
</style>


<script type="text/javascript">
var bizNumber = "<s:property value='roomProject.bizNumber'/>";
Ext.BLANK_IMAGE_URL = "${ctx}/js/ext-3.0.3/resources/images/default/s.gif";
Ext.Msg.buttonText.yes = "是";
Ext.Msg.buttonText.no = "否";
Ext.Msg.buttonText.ok = "确定";
Ext.Msg.buttonText.cancel = "取消";

Ext.apply(Ext.form.VTypes, {
    daterange : function(val, field) {
        var date = field.parseDate(val);

        if(!date){
            return;
        }
        if (field.startDateField && (!this.dateRangeMax || (date.getTime() != this.dateRangeMax.getTime()))) {
            var start = Ext.getCmp(field.startDateField);
            start.setMaxValue(date);
            start.validate();
            this.dateRangeMax = date;
        } 
        else if (field.endDateField && (!this.dateRangeMin || (date.getTime() != this.dateRangeMin.getTime()))) {
            var end = Ext.getCmp(field.endDateField);
            end.setMinValue(date);
            end.validate();
            this.dateRangeMin = date;
        }
        /*
         * Always return true since we're only using this vtype to set the
         * min/max allowed values (these are tested for after the vtype test)
         */
        return true;
    }
});

Ext.onReady(function() {
	Ext.QuickTips.init();
    var panel = new SimpleProjectPanel();
    panel.applyToMarkup("content");
    var formData = {
        "roomProject.bizNumber": bizNumber
    }
    Ext.getCmp("orderPanel").getForm().setValues(formData);
});

/*
$j(document).ready(function() {
    $j("#ext-comp-1009").mask("9999-99-99 99:99");
    });
    */
</script>

<div id="content">
</div>